package valiutils

import "github.com/go-playground/validator/v10"

var ValidateObj *validator.Validate

func InitValidateUtils() {
	//创建一个验证器
	ValidateObj = validator.New()
	//注册一个自定义验证器
	ValidateObj.RegisterValidation("stu_name", ValiStuName)
}
